var frisby = require('frisby');

frisby.create('获取当日的计划任务')
  .post('http://192.168.247.88:9090/hub/flight/get-tail-tasks', {
      'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
      'StaffID':'123456'//登录人的员工id   不能为空
  })


    // .inspectJSON()
    .expectJSONTypes({
          'result': {
             "value": String,
             "FlightDatas": Array
           }})
    .expectJSONTypes('result.FlightDatas.?', {
              "id":String,
              "arr_airport":String,
  		   			"dept_airport":String,
  		   			"est_arr_time":String,
  		   			"est_dept_time":String,
  		   			"flight_no":String,
  		   			"plan_arr_time":String,
  		   			"plan_dept_time":String,
  		   			"real_arr_time":String,
  		   			"real_dept_time":String,
  		   			"reserve_airport":String,
  		   			"status_code":String,
  		   			"legno":String,
  		   			"tri_fltid":String,
  		   			"div_flag":String,
  		   			"pax":String,
  		   			"book":String,
  		   			"delay1":String,
  		   			"dur1":String,
  		   			"delay2":String,
  		   			"dur2":String,
  		   			"delay3":String,
  		   			"dur3":String,
  		   			"delay4":String,
  		   			"dur4":String,
  		   			"gate":String,
  		   			"stc":String,
  		   			"orig_actyp":String,
  		   			"actyp":String,
  		   			"long_reg":String,
  		   			"depgate":String,
  		   			"arrgate":String,
  		   			"datop":String,
  		   			"flightdate":String,
  		   			"toff":String,
  		   			"tdwn":String,
  		   			"dept_airport_zh":String,
  		   			"arr_airport_zh":String,
  		   			"captainName":String,
  		   			"captainId":String,
  		   			"copilotName":String,
  		   			"flightdatacreatetime":String
    })
    .expectStatus(200)
.toss();
